var chalk = require('chalk');
const pluginName = 'DonePlugin';

class DonePlugin {
    apply(compiler) {
        //编译成功时时处理
        compiler.hooks.done.tap(
            pluginName,
            (error) => {
                console.log(chalk.green(`执行--->${pluginName}`));

            }
        );
    }
}

module.exports = DonePlugin;